-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't ask to press return at the end of showing help on non-Windows platforms #957
Conversation
It's been irritating me for a while now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think your right. This was there for the windows prompt
LGTM
Should I change it only display on Windows in that case, and not for any other platform? |
Actually yes that would be a better fix @gary-sweet |
Can we extend this to "Don't ask to press return at the end of showing help on terminals"? This might be fine if you run the binary from e.g. the explorer, but it's acting very weird if you run it from e.g. Windows terminal. You need to press a key after the help shows up, and the terminal prompt is then continuing in the middle of nowhere: |
I'm not sure how anything I've changed here can affect this. The same code should be running on Windows platforms as it always was. |
Sorry, should've noted that this was caused by the change in #956. I think if we remove the key press requirement on Windows too, the odd behaviour goes away. |
To make it a bit more complex, this seems to depend on the terminal! I get different behaviours on different terminals (on Win10):
That is, even though it seems you could reliably determine if the program has been started from any of those terminals, due to their different and partly strange behaviours it doesn't seem to be worth to make it so.
|
I can't test anything on Windows, so if we believe this needs a different behaviour there I'm afraid someone else will have to implement it. I don't see any reason that should prevent this PR going ahead though - any further change can be done on top of it. |
You're correct. Let's move the Windows related discussion to the PR or a new issue. Sorry for the noise. |
Description
Having to press return at the end of listing the samples or showing the help has been pretty annoying.
I suspect it's there for Windows users primarily to prevent to command window closing.
It was already excluded on Android platforms, I've also now excluded it on Linux platforms.
General Checklist:
Please ensure the following points are checked:
Note: The Samples CI runs a number of checks including: